package com.cuijq.ms.builder.v3;

/**
 * @Classname Demo
 * @Description TODO
 * @Date 2021/5/6 17:45
 * @Created by CuiJQ
 */
public class Demo {

  public static void main(String[] args) {
    // 这段代码会抛出IllegalArgumentException，因为minIdle>maxIdle
    ResourcePoolConfig config = new ResourcePoolConfig.Builder().setName("dbconnectionpool").setMaxTotal(16)
        .setMaxIdle(10).setMinIdle(12).build();
  }
}
